<template>
	<view class="pl30 pr30 pb30 pt30">
		<view class="" v-html="privacy_agreement"></view>
		<!-- <button type="default"></button> -->
		<!-- <rich-text :nodes="register_agreement"></rich-text> -->
	</view>
</template>
<script>
	export default {
		name:'privacy_agreement',
		onLoad(opt) {
			this.from=opt.type
			// this.t=opt.t
			console.log(opt)
			if(opt.t==1) {
				document.getElementsByTagName('uni-page-head')[0].style.display = 'none'
			}
			this.getconfig()
			// console
			// this.register_agreement=uni.getStorageInfoSync('config')
		},
		data() {
			return {
				// 2是来自招商资讯
					from:'',
					register_agreement:'',
					privacy_agreement:'',
					t:''
			};
		},
		methods:{
			getconfig() {
				this.$api.config().then(res=>{
					this.register_agreement=res.data.register_agreement
					this.privacy_agreement=res.data.privacy_agreement
					console.log(this.privacy_agreement)
				})
			}
		}
	}
</script>

<style lang="scss">
page {
	background-color: #FFFFFF;
}
</style>
